import { createSSRApp } from "vue";
import pinia from "@/stores";
import uviewPlus from "uview-plus";
import App from "./App.vue";
import "virtual:uno.css";
// 全局组件
import userOfTopLeft from "@/components/userOfTopLeft/userOfTopLeft.vue"; // 左上角区域用户标识信息
import personalModule from "@/components/personalModule/personalModule.vue"; // 个人信息展示列表模块

export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia);
  app.use(uviewPlus);
  app.component("userOfTopLeft", userOfTopLeft);
  app.component("personalModule", personalModule);
  return {
    app,
  };
}
